package week04.aa;

/**
 * Created by zhangxiaokun on 2018/2/26.
 */
public class Test {
    public static void main(String[] args) {
        int[] nums = new int[]{1, 3, 5, 7, 9, 11, 13, 15 };
        int a=0;
        int b=0;
        int c=0;

        for (int i=0; i<nums.length; i++ ) {
            a = nums[i];
//            System.out.println("a=" + a + ",b=" + b + ",c=" + c);
            for (int j=i+1; j<nums.length; j++) {
                b = nums[j];
//                System.out.println("a=" + a + ",b=" + b + ",c=" + c);
                for(int k=j+1; k<nums.length; k++) {
                    c = nums[k];
                    if ( (a+b+c) == 30 ) {
                        System.out.println(true);
                        System.out.println("a=" + a + ",b=" + b + ",c=" + c);
                    }

                    if ( a==1 && b ==3) System.out.println("a=" + a + ",b=" + b + ",c=" + c);
                }
            }
        }
    }
}
